<template>
	<view class="fistView">
		<view class="headView"></view>
		<view class="cardView">
			<uni-card class="infoView" :is-shadow="false">
				<view class="wenziView">
					<view>取消</view>
					<view>确认</view>
				</view>


				<uni-grid :column="3" :highlight="true" :show-border="false" style="margin-top:30rpx;">
					<uni-grid-item v-for="(item, index) in images" :index="index" :key="index">
						<view class="grid-item-box">
							<image :src="item.src"></image>
						</view>
					</uni-grid-item>

					<uni-grid-item class="updateImage">
						<uni-file-picker fileMediatype="image" limit="3" :image-styles="imageStyles" />
					</uni-grid-item>



				</uni-grid>

			</uni-card>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				imageStyles: {
					width: 90,
					height: 90,
					border: {

						radius: '20rpx'
					},
				},
				images: [{
						src: "../../../static/images/天安门.jpg"
					},
					{
						src: "../../../static/images/天安门.jpg"
					},
					{
						src: "../../../static/images/天安门.jpg"
					},
					{
						src: "../../../static/images/天安门.jpg"
					}





				]
			}
		},
		methods: {

		}
	}
</script>

<style>
	.headView {
		height: 300rpx;
		background-color: #ff7500;
	}

	.cardView {
		margin-top: -280rpx;
	}

	.cardView .updateImage {
		/* background-color: rebeccapurple; */
		display: flex;
		align-items: center;
	}

	.infoView {
		border-radius: 30rpx;
	}

	.infoView .wenziView {
		display: flex;
		height: 100rpx;
		justify-content: space-between;
		align-items: center;
		border-bottom: 5rpx solid gainsboro;
	}

	.infoView .wenziView view {
		font-size: 32rpx;
		color: black;
	}

	.infoView .wenziView view:nth-child(2) {
		color: #3285FD;
	}


	.grid-item-box {
		width: 160rpx;
		height: 160rpx;
		margin: auto;
	}

	.grid-item-box image {
		width: 160rpx;
		height: 160rpx;
		border-radius: 20rpx;
	}
</style>